package org.abettor.nookinfo.service;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

/**
 * 文章下载服务复活监听器
 * @author shawn
 *
 */
public class NovelDownloadReliveReceiver extends BroadcastReceiver
{
	@Override
	public void onReceive(Context context, Intent intent)
	{
		//	先启动服务
		Intent service = new Intent();
		service.setClass(context, NovelDownloadService.class);
		context.startService(service);

		//	再设置一次定时器
		NovelDownloadService.registerReceiverAlarm(context);
	}
}
